package com.tensai.teach.beijing.xml;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "Order")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class Order2 {
	private String id;
	private Double price;
	@XmlElementWrapper(name = "Products")
	private List<Product> product;
	//setters, getters
}